package common;

/**
 * Created by lx on 2017/7/2.
 */
public class StringUtils {
    /**
     *
     * @param str
     * @return <b> str = null || ="" || =" " || ="null"</b> return true
     */
    public static boolean isBlank(String str){
        if(str == null){
            return true;
        }
        if(str.length() == 0 || str.equals(" ") || str.equals("null")){
            return true;
        }
        return false;
    }

    public static void main(String[] args) {
        System.out.println(isBlank(" "));
    }
}
